import request from "@/utils/request";

const MissionAPI = {
  getMissionPage(params: MissionParams) {
    return request<any, MissionReturn>({
      url: "/api/admin/task/page",
      method: "post",
      data: params,
    });
  },
};

export default MissionAPI;

export interface MissionParams {
  gradeLevel: null;
  pageIndex: number;
  pageSize: number;
}

export interface MissionReturn {
  total: 2;
  list: Mission[];
}

export interface Mission {
  id: number; //任务id
  title: string; //任务标题
  gradeLevel: number; //年级
  createUserName: string; //创建人用户名
  createTime: string; //创建时间
  deleted: boolean; //是否删除
}
